<template>
  <Layout>
    <van-nav-bar title="vite-webapp-template" left-text="返回" left-arrow @click-left="toHome" />
    <van-form style="margin-top: 15px">
      <van-field v-model="formData.name" label="项目名称" readonly />
      <van-field v-model="formData.version" label="版本号" readonly />
      <van-field v-model="formData.time" label="创建时间" readonly />
      <van-field v-model="formData.user" label="创建人" readonly />
      <div style="margin: 15px 0">
        <van-button block type="primary" @click="toHome"> 确 定 </van-button>
      </div>
    </van-form>
  </Layout>
</template>

<script setup lang="ts">
import { reactive } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
const formData = reactive({
  name: "vite-webapp-template",
  version: "0.1.0",
  time: "2024-03-28 12:20:10",
  user: "Asion",
});
const toHome = () => {
  router.push("/");
  const a = {}
};
</script>

<style scoped lang="scss"></style>
